package com.qcby.util;

/**
 * @author haozeWang
 * @create 2021-08-20 16:12
 */
public class ResultObject {
    private String msg;
    private Integer code;
    private Long count;
    private Object data;

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public ResultObject() {
    }

    public ResultObject(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public ResultObject(String msg, Integer code, Long count, Object data) {
        this.msg = msg;
        this.code = code;
        this.count = count;
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "ResultObject{" +
                "msg='" + msg + '\'' +
                ", code=" + code +
                ", count=" + count +
                ", data=" + data +
                '}';
    }
}
